﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Orion.Models
{
	public class PostNumberRepository
	{
		private OrionDBDataContext m_db = new OrionDBDataContext();

		public IEnumerable<PostCode> GetAllPostCode()
		{
			var result = from p in m_db.PostCodes
						 orderby p.PostCode1
			             select p;

			return result;
		}
	}

}